
UPDATE FLW_LIC_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.10.1 (192.168.10.1)', LOCKGRANTED = SYSTIMESTAMP WHERE ID = 1 AND LOCKED = 0;

CREATE TABLE FLW_LIC_INSTANCE_COUNT (TENANT_ID_ VARCHAR2(255), TIMESTAMP_ TIMESTAMP(6) NOT NULL, COUNT_ NUMBER(38, 0) NOT NULL, SCOPE_TYPE_ VARCHAR2(255) NOT NULL, SCOPE_SUB_TYPE_ VARCHAR2(255) NOT NULL, SIGNATURE_ CLOB NOT NULL, APPLICATION_ VARCHAR2(255) NOT NULL);

CREATE INDEX FLW_LIC_INST_COUNT_TIMESTAMP ON FLW_LIC_INSTANCE_COUNT(TIMESTAMP_);

INSERT INTO FLW_LIC_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('4', 'flowable', 'com/flowable/license/db/liquibase/flowable-license-db-changelog.xml', SYSTIMESTAMP, 4, '8:4aeebd4ca5f4e9b491c4fad7b5e981b0', 'createTable tableName=FLW_LIC_INSTANCE_COUNT; createIndex indexName=FLW_LIC_INST_COUNT_TIMESTAMP, tableName=FLW_LIC_INSTANCE_COUNT', '', 'EXECUTED', NULL, NULL, '4.11.0', '1527193075');

UPDATE FLW_LIC_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_CTRL_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.10.1 (192.168.10.1)', LOCKGRANTED = SYSTIMESTAMP WHERE ID = 1 AND LOCKED = 0;

ALTER TABLE FLW_CTRL_CLUSTER_CONFIG ADD MULTI_TENANCY_ NUMBER(1) DEFAULT '0' NOT NULL;

INSERT INTO FLW_CTRL_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('9', 'flowable', 'META-INF/liquibase/flowable-control-db-changelog.xml', SYSTIMESTAMP, 9, '8:f4edb3c72e17a20a07a0d5ae6ff24472', 'addColumn tableName=FLW_CTRL_CLUSTER_CONFIG', '', 'EXECUTED', NULL, NULL, '4.11.0', '1527195660');

UPDATE FLW_CTRL_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;

